package cn.wolfcode.luowowo2.article.service;

import cn.wolfcode.luowowo2.article.domain.StrategyDetail;
import cn.wolfcode.luowowo2.article.vo.StrategyStatisVO;
import cn.wolfcode.luowowo2.common.query.StrategyDetailQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * Created by Albert on 2019/7/9.
 */
public interface IStrategyDetailService {
    PageInfo<StrategyDetail> query(StrategyDetailQueryObject qo);

    void saveOrUpdate(StrategyDetail strategyDetail,String[] tags);


    StrategyDetail get(Long id);

    void updateStateById(Byte state, Long id);

    List<StrategyDetail> getStrategyByDestId(Long id);

    List<StrategyDetail> getByViewNumTop3(Long id);

    List<StrategyDetail> list();

    void updateRedisVO(StrategyStatisVO vo);

    List<StrategyDetail> getByStrateyId(Long strategyId);
}
